// 首页
import axios from '@/api/request/request'

// 查询列表
const workLists = (option: any) => {
  return axios.get('/work/lists', { ...option })
}

// 查询详情
const workGetDetail = (option: any) => {
  return axios.get('/work/getDetail', { ...option })
}

// 添加work
const workAdd = (option: any) => {
  return axios.post('/work/add', { ...option })
}

// 更新work
const workUpdate = (option: any) => {
  return axios.post('/work/update', { ...option })
}

export { workLists, workGetDetail, workAdd, workUpdate }
